package sharing

import base.Branch
import grails.converters.JSON
import org.springframework.security.access.annotation.Secured

@Secured('permitAll')
class TestController {
    def activitService
    def utilsService

    def index() {
//        params.ids=[1,2,3]
//        utilsService.deleteMany(params,StaffMember,[false],"用户","enabled","enabled")
//        activitService.initTable()
//        StaffMember staffMember=StaffMember.list().find{true}
        log.debug(params)
        params.remove("format")
//        def result=utilsService.commonlist(Bank, params)
//        def result=new Date().format("yyyyMMddHH:mm:ss")
        Branch  branch=new Branch()
        branch.properties=utilsService.changeParams(branch,params)
        utilsService.currentUser
        branch.save()

//            request
        render result as JSON

    }
}
